<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
 Theme Name: default
 Theme URI: http://www.cnsaturn.com
 Description: 这是Stblog的第一个皮肤
 Version: 0.1
 Author: Saturn
 Author Email: huyanggang@gmail.com
*/

$this->load->view('header');
?>

    <div id="main"><!-- main -->
      
	  
<div class="conter">

  <div class="conter_nav"> <a href="/">首页</a>><a title="资讯" href="/page/1">商家</a>> <?php if(isset($current_view_hints)):?><?php echo $current_view_hints;?>  <?php endif;?></div>
<div class="bianji">
<h1><?php echo $page_title;?></h1>
</div>
  <div  class="left_zt_c" >

		
			<div class="cont_left_new list_sj">
					
				<h2 style="margin-left: 0px;">专题列表</h2>

				<ul>
					<?php if(!empty($posts) && is_array($posts)):?>	
						<?php foreach($posts as $key=> $post):?>	
						<li>
							<strong><a href="/tag/<?php echo $post['slug'];?>"><?php echo $post['name'];?></a></strong>
							<div>
								<span><a href="/tag/<?php echo $post['slug'];?>">
								<?php
										$tags=$this->posts_mdl->tag_count($post['mid']);
												foreach($tags as $key=> $post){
			
														echo '<img src="'.kc_iamg_taobao($post['kpath']).'_80x1000.jpg" />';
												
												}
								?>
								</a>
								<span>
							</div>
	
						</li>
						<?php endforeach;?>
					<?php endif;?>	
				</ul>
			</div>
		
		

	 <div id="J_PageContent">
	 	 <div class="pagination">
	 		<div class="page-bottom J_PageContainer">
				<?php if(isset($pagination)):?>
				<?php echo $pagination;?>
				<?php endif;?>
			</div>
		</div>
	</div>
	
		
		
	

  </div>
 
<div  class="left_zt_c" style="width:254px;float: right;">


	<div class="nas_ls_a">
					<?php
						$this->kclass->ad_row(1);
					?>
	</div>

  <div class="cont_left_new">
  

	
	
	<div class="s-album">
                    <div class="s-album-topbox clearfix">
                        <span class="s-album-title">标签：</span>

                    </div>
                    <div class="s-album-tagbox clearfix">

                        <div class="s-album-tags">
      						  <?php echo Common::format_metas($post->tags, '');?>
                        </div>
                    </div>
  </div>

	
  </div>
  	<div class="list_a_ls" style="width:232px;float: right;">
				<h3>最新问答</h3>

				<ul>

					
					<?php
							
									$this->kclass->bbs_now(1,array('typeid'=>'3'));
					?>	
					
				</ul>

			</div>
	</div>
	
	</div>
</div><!-- //main -->

<?php $this->load->view('footer');?>